package com.fudan.adse.service;


import com.fudan.adse.api.CommonResult;
import com.fudan.adse.config.FeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @author Jerry Zhang <zhangjian16@fudan.edu.cn>
 * @desc 认证服务远程调用
 * @date 2022-11-06 12:08
 */
@FeignClient(value = "ticket-auth", configuration = FeignConfig.class)
public interface AuthService {

    @PostMapping(value = "/oauth/token")
    CommonResult getAccessToken(@RequestParam Map<String, String> parameters);
}
